pretty urls?

Permalink
I have pretty URLs enabled, but the URLs look weird... (ie.www.www.domain.com/index.php/gallery/)....

Why does index.php still appear in the URL? Wouldn't a "pretty" version of this be (www.domain.com/gallery/)?

Is there a way to remove index.php from appearing in the URL?

 
frz replied on at Permalink Reply
frz
did you put the code provided in the dashboard into your .htaccess file?
GrfxMaster replied on at Permalink Reply
Yes, I added the code to the .htaccess file.
frz replied on at Permalink Reply
frz
if you put that code in your .htaccess file and actually enable pretty urls in your dashboard you shouldn't be seeing index.php in your urls anymore.
GrfxMaster replied on at Permalink Reply
If I try the URL without it says "No input file specified." Is there some PHP config I need to check?
stark replied on at Permalink Reply
Hi,

Did you find a solution to this? My website has two links for each page, one with index.php/ and one without.

I'd love to get rid of the version with it in.
dmgriffiths replied on at Permalink Reply
Having the same problem - just started another thread on this topic. Let me know if you found a solution.
RodneyC5 replied on at Permalink Reply
I found a solution that works for me on an apache server, the code for the .htaccess file must be as follows:

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]


Note: the '?' just after index.php in the code above. Without that '?' I also got the "no input file" message when using the default 'pretty urls' code.

Just remember, if you have already used 'ugly links' in your content and elsewhere on your site, you will have to change them to 'pretty' ones otherwise you might think 'pretty urls' are not working.
To test 'pretty urls' just type the the name of your page in the browser ashttp://www.yoursite.com/contact for example.
jbx replied on at Permalink Reply
jbx
Also worth making sure your .htaccess file is being read. Some ISP's don't allow them. Easiest way to test is just to fill your .htaccess with gibberish. If it is being read, you will get a 500 server error (might display as just a blank screen). If it is not being read, then your site will still load...

Jon