Bluehost.com Web Hosting $6.95

"shorturl" OR .htaccess problem

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. .. &...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 11-20-2006
HansH
 
Posts: n/a
Default Re: "shorturl" OR .htaccess problem

"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


  #12 (permalink)  
Old 11-20-2006
HansH
 
Posts: n/a
Default Re: "shorturl" OR .htaccess problem

"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


  #13 (permalink)  
Old 11-20-2006
Moser Ludwig
 
Posts: n/a
Default Re: "shorturl" OR .htaccess problem

solved!
i had the line
LoadModule rewrite_module modules/mod_rewrite.so
commented in apache conf
#LoadModule rewrite_module modules/mod_rewrite.so

thanks a lot for your great help!!!
Ludwig Moser


  #14 (permalink)  
Old 11-20-2006
Moser Ludwig
 
Posts: n/a
Default Re: "shorturl" OR .htaccess problem

thanks but ill keep the .htaccess solution
as i want to publish sourcecode for ppl who cannot
modify their apache configuration (eg users on free webpace
as on funpic)

greets
Ludwig Moser


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:54 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0