This is a discussion on ".htaccess" within the PHP Forum section. This forum, and the thread ".htaccess are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
.htaccess
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|
|
||||
|
Re: .htaccess
Ben,
You need to code your application so that it writes out the url's the way you want. The .htaccess rules just make sure that the non-existant URL's (when requested) are directed to your existing scripts. Obviously, you'll be able to code the URL side, post when you need .htaccess help.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
||||
|
Re: .htaccess
You could always download the plugin that Rob did for the url converting, then have a good look at how they did it?
|
|
||||
|
Re: .htaccess
Quote:
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
||||
|
Re: .htaccess
ok thanks rob
i can recode it to include the title, but then what to i actually link to in my <a href="blah"> etc? do i link to the php, will the .htaccess handle the rest? or do i need to link to the new .html url? |
|
||||
|
Re: .htaccess
Hi Ben.... link to the url as you want it to appear. The .htaccess file will push requests for that url at your php files.
It's a common misconception that .htaccess will change url's in scripts...... it wont. It will only perform operations on HTTP Requested URL's.... that is, your browser requests a url...... your server then does something with that url (re-writes it, forwards it, redirects it, rejects it(with error) ) You have to make all your URL's look pretty.... .htaccess will just make sure that http requests for the pretty versions are transfered across to your php file. Hope that makes sense.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| htaccess |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| writing htaccess | alexgeek | PHP Forum | 12 | Oct 9th, 2007 07:09 |
| htaccess | BarryM | Web Page Design | 3 | Oct 27th, 2006 19:28 |