RewriteEngine on RewriteRule ^user/([^/\.+)/?$ user.php?dname=$1
What is throwing me is that this was working entirely fine, until I moved folders. I had been working in a different folder while testing, then moved my user.php to the root folder and this stopped working. I know for sure .htaccess is being parsed because if I add rules to .htaccess to force the use of www.
RewriteEngine on
RewriteRule ^user/([^/\.+)/?$ user.php?dname=$1
RewriteCond %{HTTP_HOST} !^www\.walkingtextbook\.com [NC]
RewriteRule ^(.*)$ http://www.walkingtextbook.com/$1 [R=301]
That seems to function properly.
The relevant URLs are:
http://www.walkingte...dname=terran261
vs.
http://www.walkingte.../user/terran261
With the ?dname= set you'll notice I have the
$_GET['dname'] variable echoed at the very top.
Again, let me reiterate, this had been working fine, but stopped working unexpectedly after moving up one level to the root directory.
Any thoughts? Thank you very much.

New Topic/Question
This topic is locked



MultiQuote


|