![]() |
|
|||||||
| Register | FAQ | Members List | Downloads | Calendar | Today's Posts | Search | Webmaster Resources | Webmaster Blogs |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||||
|
Thanks guys! Great little tips. Reps to all of you!
__________________
Advanced CMS software with directory, blog, classifieds and portal features |
|
||||
|
I have learned about this code the hard way. Someone had hacked into one of my sites and added those lines to the top of some pages. People kept getting redirected to other pages.
|
|
|||||
|
Hi Martin, I have been using PHP redirects all the time since I am not good in my Regex codes for doing .htaccess redirects. I was wondering if you can modify the code you have and also redirect URLs with the "/index.html" to "/" only without causing an endless loop.
__________________
Join Busby SEO Challenge | My Busby SEO Challenge | Not Qualifed Busby SEO Challenge |
|
|||||
|
Here's how to remove the index.* - without looping:
Code:
# take out the index.php in URL...
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(php|htm|html)\ HTTP/
RewriteRule ^(([^/]+/)*)index\.(php|htm|html)$ http://%{HTTP_HOST}/$1 [R=301,L]
|
![]() |
| Bookmarks |
| Webmaster Resources |
|
• UK WW SEO Tools • Find UK Hosts |
| The Forum Rules |
|
• Forum Rules - MUST READ |
| Site Of the Month |
![]() Nominate site of the month |
|
|
| UK Webmaster World Forums - Internet marketing, web development, domain names, SEO contest and discussuons. |
| Subscribe to our feeds |