Jump to content


Photo

Simple redirection


  • Please log in to reply
4 replies to this topic

#1 3s2ng

3s2ng
  • Members
  • PipPipPip
  • Advanced Member
  • 45 posts

Posted 21 September 2006 - 04:34 PM

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...files/page1.php

Hope you can help me with this simple problem.

Thanks
MARK



#2 onlyican

onlyican
  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 21 September 2006 - 04:42 PM

RewriteRule ^page1.html page1.php [L]


Tell me the problem, I will try tell you the solution

#3 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 21 September 2006 - 06:04 PM

Help with mod_rewrite belongs in it's dedicated forum: mod_rewrite help ;)

#4 onlyican

onlyican
  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 21 September 2006 - 07:32 PM

I aint a mod to move it so
Tell me the problem, I will try tell you the solution

#5 3s2ng

3s2ng
  • Members
  • PipPipPip
  • Advanced Member
  • 45 posts

Posted 21 September 2006 - 11:47 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users