Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!
Moderator: General Moderators
-
miniuzi
- Forum Newbie
- Posts: 2
- Joined: Mon Mar 14, 2005 2:33 pm
Post
by miniuzi »
I am trying to make the file foo.php or foo.html redirect to foo
I have tired:
Code: Select all
RewriteEngine on
RewriteRule ^(.*)\.(.*)$ $1
Code: Select all
RewriteEngine on
RewriteRule ^(.*).(.*)$ $1
Can someone please help me?
-
miniuzi
- Forum Newbie
- Posts: 2
- Joined: Mon Mar 14, 2005 2:33 pm
Post
by miniuzi »
This did the trick:
Code: Select all
RewriteBase /
RewriteCond %{REQUEST_URI} ^/.*\.html$
RewriteRule ^(.*)\.html /$1 їR,L]
-
itsmani1
- Forum Regular
- Posts: 791
- Joined: Mon Sep 29, 2003 2:26 am
- Location: Islamabad Pakistan
-
Contact:
Post
by itsmani1 »
hi there...
i m very new to apache!!!!!
me too want some help in url rewriting can any one help me????