Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Share |
  #1  
Old 04-05-2017, 01:25 AM
Techmate001 Techmate001 is offline
Junior Member
 
Join Date: 09-10-15
Location: Chennai
Posts: 32
iTrader: 0 / 0%
Exclamation htaccess not redirecting

check the below code & find out the error for my site mazetech.co.in

It's not redirecting /index.php to home & 404 tooo

my htaccess

PHP Code:
<IfModule mod_rewrite.c>
RewriteEngine On
ErrorDocument 404 
/404.html
RewriteCond 
%{HTTP_HOST} ^mazetech\.co.in$ [NC]
RewriteRule ^(.*)$ http://www.mazetech.co.in/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule 
^(.*)index.phphttp://www.mazetech.co.in/$1 [R=301,L]
</IfModule
is this correct for my php site?

Last edited by snakeair; 04-07-2017 at 02:55 PM.
 
Reply With Quote

Advertisement

Advertisement

Go Back   Webmaster Forum > Web Development > Coding Forum

 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Htaccess Not Working After SSL Techmate001 SEO Forum 3 04-04-2017 04:18 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 06:13 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC