Need help. This used to work, now it has stopped

New to mod_rewrite? This is a good place to start.

Need help. This used to work, now it has stopped

Postby rudyten » Thu Mar 04, 2010 2:22 am

http://www.domain.com/profile.php?page=/profile/james
http://www.domain.com/profile.php?page= ... llery.html
http://www.domain.com/profile.php?page= ... ery/2.html

needs to be

http://www.domain.com/profile/james.html
http://www.domain.com/profile/james/gallery.html
http://www.domain.com/profile/james/gallery/2.html


This was working fine , all of a sudden it stopped, am not sure what has happened
rewriteRule ^profile/([-a-z0-9_]+)+(?:/([a-z0-9_]+))+(?:/([a-z0-9_]+))?(\.html|/)?$ /profile.php?page=$0 [NC,QSA,L]


my other mod-rewrites not tied to profile.php are still working fine
rudyten
 
Posts: 37
Joined: Wed Nov 17, 2004 8:57 am

Re: Need help. This used to work, now it has stopped

Postby rudyten » Thu Mar 04, 2010 11:54 am

Problem solved

My problem was this line in my .htaccess

Options +SymLinksIfOwnerMatch ExecCGI Includes IncludesNOEXEC IncludesNOEXEC MultiViews SymLinksIfOwnerMatch Indexes -Indexes

replaced it with
Options +SymLinksIfOwnerMatch All -Indexes

and all is good again
rudyten
 
Posts: 37
Joined: Wed Nov 17, 2004 8:57 am


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 9 guests

cron