Forum Moderators: phranque

Message Too Old, No Replies

Htaccess Help!

Htaccess mod rewrite

         

Ben878

4:40 pm on Oct 29, 2008 (gmt 0)

10+ Year Member



Hello I really need some help with htaccess I have no idea where to learn it or anything of the such I only know some very basic htaccess. So I am asking for your help. How would I change the following url:
[mywebsite.com...]

Into

[mywebsite.com...]

Thankyou if you could help me with this I'd greatly appreciate it.

g1smd

7:31 pm on Oct 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Links on your page define the URL, so you need the latter URL in your links on your pages.

You then need a rewrite function that takes the URL request and translates it to get the content from the correct internal server location.

You also need a 301 redirect from the ? parameter version of the URL to the folder-like URL so that the ? parameter URL cannot be directly accessed or indexed.

This example is more complicated than you need, because it has two variables, but you can use it as a starting point... [webmasterworld.com...]