Online Loans - Credit Card Consolidation - Meeting Rooms - Refinance - Advertising

PDA

View Full Version : Modrewrite mypage.htm to /mypage/ - HELP


lateuk
Nov 9th 2007, 4:54 am
Hello,
I am trying to change my site from using .htm files to directories so for example /adsense.htm would be /adsense/

I have made the directory and renamed the adsense.htm to index.htm (in the directory of adsense).

Now i wanted to do a modrewrite, so i added:

RewriteRule ^adsense.htm /adsense/ [L,R=301]

to the htaccess file. This does not work, any help would be much appriciated, i hate modrewrite stuff.

Late

serialCoder
Nov 9th 2007, 4:58 am
hi, I'm not really a mod rewrite expert but i know quite enough :cool:
by the way, have you configured/enabled your server to allow mod rewrite?

lateuk
Nov 9th 2007, 5:38 am
I am using modrewrite to do a sitename.com to www.sitename.com redirect and this works, so a assume modrewrite is working on the server.

krt
Nov 9th 2007, 6:30 am
What happens? A 404/500 error, what is the location the browser ends up? Does it stay at domain.com/adsense.htm ?

lateuk
Nov 9th 2007, 7:02 am
Just went to check your question and i find it is working correctly now!?!? Strange.

Google currently lists that page as /adsense.htm so will it eventually change to /adsense/ in Google?

Will it also not affect my page rank etc?

Thanks