Encerrado

Wordpress cookieless domain .htaccess rewrite

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

Habilidades: CSS, PHP, WordPress

Veja mais: htaccess rewrite cakephp wordpress, htaccess rewrite wordpress 301 root, subdomain domain htaccess url rewrite, apache htaccess rewrite url different domain, rewrite subdomain domain htaccess, htaccess rewrite subdomain domain, htaccess rewrite jpg, phplinkdirectory htaccess rewrite, htaccess rewrite html, htaccess rewrite dont work plesk, move wordpress sub domain, htaccess rewrite subdomain url, sub domain url rewrite apache, transfer wordpress different domain, htaccess rewrite rule

Acerca do Empregador:
( 134 comentários ) Houston, United States

ID do Projeto: #17077632

12 freelancers estão ofertando em média $25 para esse trabalho

gatecorp

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.

$23 USD em 1 dia
(212 Comentários)
6.9
sumonst21

Hello, I'm WordPress expert, and i have resolve this issue so many times. I understood that you want to use a cookie less sub-domain for your static files and I'll do the whole thing for your and also will guild you Mais

$25 USD em 1 dia
(153 Comentários)
6.7
baniksubir1

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 Mais

$30 USD in 3 dias
(81 Comentários)
6.2
envisionops

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 Mais

$40 USD in 0 dias
(94 Comentários)
6.1
radimosve

Hi!. I am available right now, how are you? I am interested in your project and would like to discuss the project with you. I always deliver on time and on budget feel free to check my feedbacks and portfolio. I unde Mais

$30 USD in 6 dias
(48 Comentários)
5.4
webcast

Hello katiehaugland, I am good at : 1. WordPress web development 2. PSD to HTML 3. Responsive web development 4. Graphics Designing 5. Photoshop 6. PHP 7. html + CSS Styling 8. js & jQuery. you can check Mais

$30 USD em 1 dia
(84 Comentários)
5.3
nizamulamy

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, Mais

$25 USD em 1 dia
(73 Comentários)
5.0
jamesmartin81

We have experience of Website in PHP, Laravel, CodeIgnitor, Wordpress, Opencart, Woocommerce . We also have experience of making Android,Window and iphone application with ionic & phonegap. Benefits in working with Mais

$18 USD em 1 dia
(58 Comentários)
5.1
bhanderirakesh

I have 3 year experience in wordpress and php platform. I had been completed many projects into this platform. Let me more dicuss into chat sir. My $kype id = [login to view URL] It is my poftfolio : [login to view URL] Mais

$15 USD em 1 dia
(37 Comentários)
4.0
vimal7320

Hey Mate Why you making this too complicated , We can use 301 redirect plugin for it. I am experienced with that.

$25 USD em 1 dia
(2 Comentários)
2.6
ArtemGB

Hey! My name is Artem. it is a pleasure to meet you in advance. Got acquainted with your task. Familiar with WordPress (experience more than 5 years). I am engaged both in improvements of the existing sites, and Mais

$10 USD in 3 dias
(1 Comentário)
0.3
muntasirmahbub0

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.

$25 USD em 1 dia
(0 Comentários)
0.0