Link to home
Start Free TrialLog in
Avatar of stemwinder
stemwinder

asked on

Need to add query string to end of URL via Mod Rewrite

I need to setup my .htaccess file with a rule that rewrites all visits to www.site.com/feedĀ (with or without trailing slash) to www.site.com/feed?w=1

I've attached my current .htaccess contents below.



php_value memory_limit 128M
 
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
 
AddHandler php5-script .php

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial