Page 1 of 1
mod_rewrite for ugly URLs
Posted: Wed Aug 18, 2004 2:59 pm
by Daisy Cutter
Can anyone help me or give me a good site to find out about mod_rewrite.
Currently my URLs are very ugly (
http://example.com/index.php?url=http:/ ... nclude.php)
I want to use mod_rewrite to make them like
http://example.com/include.php or something.
Any answers?
Posted: Wed Aug 18, 2004 3:04 pm
by Draco_03
you could create a frame set of 1px (top or bottom) and load in the other frame all your stuff.. your adresse will never change
ex : if it's
http://www.l33t.com
if you go in csection contact the adress will still be :
http://www.l33t.com
Posted: Wed Aug 18, 2004 3:13 pm
by Daisy Cutter
Draco_03 wrote:you could create a frame set of 1px (top or bottom) and load in the other frame all your stuff.. your adresse will never change
ex : if it's
http://www.l33t.com
if you go in csection contact the adress will still be :
http://www.l33t.com
I dont think thats a good practice because it breaks the URLs, I just want to simplify them.
With a frame, if you hit reload it will bring you back to the main page, and all links will load within the page, preventing bookmarking.
one of the reasons I registered a domain was to get away from the .tk frame stuff.
Posted: Wed Aug 18, 2004 3:14 pm
by Draco_03
i agree...

frames suxorz (see how l33t i am)
Posted: Wed Aug 18, 2004 4:57 pm
by Daisy Cutter
I need to get my URLs like this because google won't index my page with them the way they are, which is a tremendous drawback.
Anyone know a good tutorial, or can simply provide me with a way of turning
http://example.com/index.php?url=http:/ ... m/page.php into
http://example.com/page.php (or even
http://example.com/index.php/url/page.php is fine, I just need it to be search-engine friendly).
Posted: Thu Aug 19, 2004 11:16 pm
by Daisy Cutter
anyone know any tutorials? not being indexed in google really sucks.
Posted: Sun Aug 22, 2004 1:02 pm
by Daisy Cutter
I did it:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^goto-(.*)$ /index.php?url=
http://kafene.org/$1
Now my URLs are like
http://kafene.org/goto-filename.php
But it's very tricky, one wrong link and I could get a loop, or images will stop working (they'll try to access goto-filename.php/img/image.png)
Posted: Wed Aug 25, 2004 12:59 am
by John Cartwright
set a rule for your images
Code: Select all
RewriteRule images/(.*?)$ /images/$1