This is a discussion on "shorturl" OR .htaccess problem within the Apache Web Server forums, part of the Web Server and Related Forums category; "Moser Ludwig" <antispam@chello.at> schreef in bericht news:d95ac$4561eb15$d52ff9ab$31961@news.chello.at. .. &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
"Moser Ludwig" <antispam@chello.at> schreef in bericht
news:d95ac$4561eb15$d52ff9ab$31961@news.chello.at. .. >> Since you did not see a 500 'internal server error' your .htaccess is >> apparently ignored: Check your config for setting AllowOverride. >> > ok > now i am getting > Internal Server Error > .htaccess in http://localhost/bf2sclone/ > ReWriteEngine On > ReWriteCond %{REQUEST_FILENAME} !-f > ReWriteRule ^([0-9]{1,8})/?$ index.php?pid=$1& [L] > > url: http://localhost/bf2sclone/69595617/ > Please quote the relevant error log entries _below_ this line. Or, if it croaks about 'RewriteEngine' being misspelled or defined by a module not included, first check or amend your config for an uncommented line like: LoadModule rewrite_module modules/mod_rewrite.so BTW Where is your index.php? If at the root, you do need the 'ReWriteBase /' after all. HansH |
|
|||
|
"Moser Ludwig" <antispam@chello.at> schreef in bericht
news:a22a6$45620c2c$d52ff9ab$11843@news.chello.at. .. > solved! > i had the line > LoadModule rewrite_module modules/mod_rewrite.so > commented in apache conf > #LoadModule rewrite_module modules/mod_rewrite.so > Fancy to retry your plan to rewrite in config? <location /bf2sclone> RewriteEngine On ReWriteCond %{REQUEST_FILENAME} !-d ReWriteCond %{REQUEST_FILENAME} !-f ReWriteRule ^/([0-9]{1,8})/?$ /index.php?pid=$1& [L,PT,QSA] </location > Notes: IIRC you can now drop the ReWriteBase An extra condition is checking for absense of the named folder too Extra flag PT allows ao Alias to handle the modified path Extra flag QSA allows a query string to be passed along HansH |