redirecrt - add index.php to url
3 posts
• Page 1 of 1
redirecrt - add index.php to url
I would like to redirecrt from:
http://www.myurl.com/?Subject=Content-64
to the url:
http://www.myurl.com/index.php?Subject=Content-64
(with index.php)
any suggestions?
http://www.myurl.com/?Subject=Content-64
to the url:
http://www.myurl.com/index.php?Subject=Content-64
(with index.php)
any suggestions?
Re: redirecrt - add index.php to url
What is the difference of both except the other has "index.php" with it?
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: redirecrt - add index.php to url
Hello,
I didn't know if it's a single page redirect or a generic rule, so I created a generic rule for URLs with querystring saying "subject=...."
Please, try using the following:
Regards
Andrew
I didn't know if it's a single page redirect or a generic rule, so I created a generic rule for URLs with querystring saying "subject=...."
Please, try using the following:
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} ^Subject=([^/]+)$ [NC]
RewriteRule ^$ /index.php [NC,QSA,R=301,L]
Regards
Andrew
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 16 guests