Jump to content

Multiviews messing up other rewrites?


galvin

Recommended Posts

Using Multiviews is now causing issues with other rewrites.

 

When I wasn't using Multiviews, the "Create Quiz redirect" below worked fine. Once I started using Multiviews (i.e. once I added "+Multiviews" to the code), that redirect doesn't work and says (in Chrome)... "This webpage has a redirect loop - The webpage at http://www.mysite.com/createquiz/overivew has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer."

 

Anyone see the possible issue in my code below?...

 

RewriteBase /
Options +FollowSymlinks +MultiViews
RewriteEngine on

#sending all non-www requests to www
RewriteCond %{http_host} ^mysite.com [nc]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [r=301,nc]

#sending all index.php requests to root
RewriteCond %{THE_REQUEST} "GET /index.php HTTP/1.1"
RewriteRule index\.php http://www.mysite.com/ [R=301,L]

#Create Quiz redirect
RewriteRule ^createquiz/overview /createquizoverview.php [NC,L]

 

 

Link to comment
https://forums.phpfreaks.com/topic/253640-multiviews-messing-up-other-rewrites/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.