Wordpress cookieless domain .htaccess rewrite
$10-30 USD
Paid on delivery
currently I use this rewrite in my .htaccess to cache bust some of my static files on my wordpress website
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)\.(.+)\.(js|css|PNG|jpg|png)$ $1.$3 [L]
This makes a url like this
[login to view URL]
which is really located at
[login to view URL]
work
and this works
I added a cookieless subdomain which is [login to view URL] which points to [login to view URL]
so in my subdomain this
[login to view URL] shows you the file that is really located at
[login to view URL]
I need to know what to add to my htaccess to make
[login to view URL] show the file at
[login to view URL]
the cache busting part will always be either a filemtime (digits only) or digits with dots (version) like this [login to view URL]
so basically I need something like this if file is [login to view URL](js|css|PNG|jpg|png) to point to [login to view URL](js|css|PNG|jpg|png)
I am not sure if need to edit my current rule or add another rule and if it needs to go before or after - and I need it to work with the wordpress rules which are the standard:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /[login to view URL] [L]
</IfModule>
# END WordPress
Project ID: #17077632
About the project
11 freelancers are bidding on average $26 for this job
I am a Vietnam based Freelancer offering exceptional quality work for my clients from last 10 years. Please leave a message to review my samples.
Dear Hiring Manager, I read your project (Wordpress cookieless domain .htaccess rewrite) and ready to start work on it I'm Good at CSS, PHP, WordPress Hi katiehaugland! Please Send me a message so that we can discuss More
Hi there, I understand you hired someone previously and it didn't workout. I can fix this in few hours. Basically we need to redirect all files to php middleware code which will take care of it. Lets chat and get it d More
Hello Sir, I have read your project description. I can assist you with your wordpress .htaccess file, I'll provide you 100% quality with efficiency. I'm a Website developer and designer I'm working on wordpress, More
Hey Mate Why you making this too complicated , We can use 301 redirect plugin for it. I am experienced with that.
Why you hire me ? * Fast and responsive delivery. * Understanding buyers requirement * Provide best value for money. * Maintain a good relationship after the project. * 24 hrs customer support.