php - htaccess Rewrite Rule - Internal Server Error -
I'm having problems thinking what should I rewrite a simple htaccess to work ...
Current URL:
Required URL:
Current htaccess code:
RewriteRule RewriteEngine current ^ ([^ /] *) $ /profile.php? The result from the id = $ 1 [L]
above is the internal server error:
I will also work for it like a custom Domain (if set), though I'm sure that working properly for the above solution will work just fine.
Desired URL:
thanks in advance.
I used this .htaccess
and it works for me :
RewriteCond% {REQUEST_FILENAME} RewriteEngine on! -f RewriteCond% {REQUEST_FILENAME}! -d RewriteRule ^ ([^ /] *) $ profile.php? Id = $ 1 [L, QSA]
QSA
flag is used, you can add many received parameters like this: Http://www.website.com/61338848?para meter = value
RewriteCond% {REQUEST_FILENAME}! -f
checks that request_filename
is a file, if yes, the rewrite rule
will not be executed
Comments
Post a Comment