3s2ng Posted September 21, 2006 Share Posted September 21, 2006 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 thishttp://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.phpYou noticed that I only change the extension.I have something like this in my .htaccess fileRewriteEngine onRewriteRule ^page1\.html$ page1\.phpUsing 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.phpHope you can help me with this simple problem.ThanksMARK Quote Link to comment Share on other sites More sharing options...
onlyican Posted September 21, 2006 Share Posted September 21, 2006 RewriteRule ^page1.html page1.php [L] Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted September 21, 2006 Share Posted September 21, 2006 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] ;) Quote Link to comment Share on other sites More sharing options...
onlyican Posted September 21, 2006 Share Posted September 21, 2006 I aint a mod to move it so Quote Link to comment Share on other sites More sharing options...
3s2ng Posted September 21, 2006 Author Share Posted September 21, 2006 Not working RewriteRule ^page1.html page1.php [L]Bad RequestYour browser sent a request that this server could not understand.Apache/1.3.23 Server at localhost Port 80 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.