Jfrye
Mapper, trying to learn scripting
As the title says, I made some changes to my .htaccess file to remove the .php extension from my web url. After these changes, I cannot log into the website. I enter login info, hit enter, and the login fields go blank, but nothing happens.
Here is .htaccess that DOES NOT WORK
Here is the .htaccess that DOES WORK
This is the code that allows me to login to my website, but this is also the code that shows .php extensions in the url.
Does anyone know how to help me fix this, so that I can log into my website, while still removing the file extensions from url?
Here is .htaccess that DOES NOT WORK
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)\.php$ /characterprofile.php?name=$1
# Unless directory, remove trailing slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/$ http://myserver.no-ip.org/$1 [R=301,L]
# Redirect external .php requests to extensionless url
RewriteCond %{THE_REQUEST} ^(.+)\.php([#?][^\ ]*)?\ HTTP/
RewriteRule ^(.+)\.php$ http://myserver.no-ip.org/$1 [R=301,L]
# Resolve .php file for extensionless php urls
RewriteRule ^([^/.]+)$ $1.php [L]
Here is the .htaccess that DOES WORK
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /characterprofile.php?name=$1
Does anyone know how to help me fix this, so that I can log into my website, while still removing the file extensions from url?