Another Mod-rewrite question

Discuss practical ways rearrange URLs using mod_rewrite.

Another Mod-rewrite question

Postby RavenMad » Thu Feb 03, 2005 2:38 am

hi guys

wondering if you could help me with this mod rewrite problem??

at the moment i have & etc...

but how can i make it: &

without having the index file in the url


Thannks heaps

Postby Caterham » Fri Feb 04, 2005 2:20 am

to rewrite it back:
Code: Select all
RewriteEngine On
RewriteRule !^index - [C]
RewriteRule !^(.*) /index/$1 [L]

remember that you have to change all links in your document to mod_rewrite will only write your files back from to

Otherwise you won't have an effect on search engines

Posts: 690
Joined: Fri Dec 10, 2004 1:30 pm

Postby RavenMad » Sat Feb 05, 2005 7:39 pm

Works a treat, thanks alot! :biggrin:

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 4 guests