Jump to content

Archived

This topic is now archived and is closed to further replies.

3s2ng

Simple redirection

Recommended Posts

Hello Freaks,

I'm having a problem with a simple mod rewrite redirections.

Heres the scenario.

I have a bunch of pages which are all under advertisements like google, yahoo, etc.

Sample.

I have a page like this

http://mydomain.com/page1.html
  - I have submitted that URL for advertisements and I have a new page for that but I dont want to update my advertisements. All I want is to change that page1.html into something like page1.php

You noticed that I only change the extension.

I have something like this in my .htaccess file

RewriteEngine on
RewriteRule ^page1\.html$ page1\.php

Using that above .htaccess file. When i visit. http://mydomain.com/page1.html it will redirect to something like this http://jmydomain.com/var/chroot/home/content/t/e/s/test/html/files/page1.php

Hope you can help me with this simple problem.

Thanks
MARK

Share this post


Link to post
Share on other sites
Help with mod_rewrite belongs in it's dedicated forum: [url=http://www.phpfreaks.com/forums/index.php/board,50.0.html]mod_rewrite help[/url] ;)

Share this post


Link to post
Share on other sites
Not working RewriteRule ^page1.html page1.php [L]

Bad Request
Your browser sent a request that this server could not understand.

Apache/1.3.23 Server at localhost Port 80

Share this post


Link to post
Share on other sites

×

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.