Jump to content

Pretty URLS


gerkintrigg

Recommended Posts

I've got my site working pretty much as I want it: http://www.truro.com but when I search for something (doesn't matter what) and find a page, When I click on it, It directs me to a page like:

 

http://www.truro.com/pages/Ghostly~Publishing/Ghostly~Publishing.html

 

Everything's great so-far.

 

Then when I get there, the URL in the top bar reads like the ugly database code that sits behind it:

 

http://www.truro.com/pages/pages/reader.php?profile=Ghostly~Publishing&page=Ghostly~Publishing

 

Both pages are essentially the same because of the Mod re-write rule:

 

RewriteRule ^pages/(.*)/(.*)\.html http://www.truro.com/pages/pages/reader.php?profile=$1&page=$2 [L]

 

Is there something I'm doing that means I don't see the pretty URL I want to see?

Link to comment
https://forums.phpfreaks.com/topic/265517-pretty-urls/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.