PDA

View Full Version : Friendly url doesn't seem to work


marvanni
10-10-2005, 03:25 PM
Dear Dreamers,

I've searched the topics on this forum as well as others, but i can't get the friendly url working. The mod rewrite is enabled on my own machine as on the hosting server.

The .htaccesfile is containing:
Options All -Indexes
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

With friendly urls disabled in the SD admin panel, the links works as normal. But as soon as I enable the function, links are not found and I get a 404-page in return. No special characters or capitals are used. Does need some time before changes are made after the friendly url function has enabled?

Who knows what to do.

Subdreamer: 2.2.2 PHP Version 4.3.10, Apache/1.3.33 Website: marvanni.com (http://www.marvanni.com)


Marvanni

abcohen
10-10-2005, 04:02 PM
in the apache conf you must allow ModRewrite if its commented out it wont work.

make sure the file is correctly names .htaccess on windows you must go into notepad and save it from there with that filename windows wont let you quickly rename the file otherwise

marvanni
10-10-2005, 04:39 PM
<div class='quotetop'>QUOTE(abcohen &#064; Oct 10 2005, 06&#58;02 PM) 1649</div>
in the apache conf you must allow ModRewrite if its commented out it wont work.

make sure the file is correctly names .htaccess on windows you must go into notepad and save it from there with that filename windows wont let you quickly rename the file otherwise
[/b]

It worked on the server, wich is a linux server. With the internal editor i could create a new .htaccessfile. probably the file had the .txt extension before. Thanks for the quick response.

mustbme
04-24-2006, 04:01 AM
Options All -Indexes
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} &#33;-f
RewriteCond %{REQUEST_FILENAME} &#33;-d
RewriteRule ^(.*) index.php

Adding "RewriteBase /" will solve problems with some common shared hosting Apache configurations.