Easy mod rewrite

Discuss practical ways rearrange URLs using mod_rewrite.

Easy mod rewrite

Postby Guest » Sun Jan 23, 2005 1:43 am

Hello!

I would like to rewrite this url:
http://www.myurl.com/links/dir.php

to this:
http://www.myurl.com/dir.php

This is what I've used:
RewriteEngine on
RewriteBase /
RewriteRule ^dir.php$ linktest/dir.php [R,L]

Thanks in advance.

Trond.
Guest
 

Postby Caterham » Wed Feb 02, 2005 11:52 am

this should work, the syntax seems to be correct for .htaccess in the doc root. remove the rewritrebase if you don't need it.

try also viewtopic.php?p=1841#1841
Caterham
 
Posts: 690
Joined: Fri Dec 10, 2004 1:30 pm


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 32 guests

cron