Jump to content

Mod rewrite - using server URL


ando321

Recommended Posts

I'm trying to rewrite a wierd URL i haven't done before i think its conflicting with the curly character.

 

The url is:

 

http://ftp2.domains.net/~insurance/i...ounty=cheshire

 

I wanted to turn this url, using .htaccess into SEO friendly such as:

 

http://ftp2.domains.net/~insurance/r...rance/cheshire

 

I have tried counless menthod to achive this with no luck.

 

I have tryed this and others.

 

RewriteRule /(.*)/$ /\~insurance/index.php?insurancetype=$1

 

Thanks the help. much appreciated.

Link to comment
https://forums.phpfreaks.com/topic/217550-mod-rewrite-using-server-url/
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.