Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mislz28/public_html/wp-content/themes/css-faq-v2/timeweather/timeweather.php on line 19
8 May 2008

forum

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




Issue with .htaccess

UserPost

7:41 pm
May 23, 2008


warren

Member

posts 35

1

I have an issue with .htaccess file. Actually I would like to direct all my / mydoman.com to my Url http://www.domain.com


I also want to redirect all files from http://www.mydomain.com/index.html to http://www.mydomain.com


What do I need to edit in .htaccess file

7:42 pm
May 23, 2008


pauline

Member

posts 22

2

All you need to do is


RewriteEngine on
RewriteCond %{HTTP_HOST} ^mydomain.com [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/1 [L,R=301]

7:43 pm
May 23, 2008


warren

Member

posts 35

3

Oh wow, thanks so much


Do I need to do the same even to redirect http://www.mydomain.com/index.html to http://www.mydomain.com



Reply to Topic: Issue with .htaccess

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 12 + 2        (Required)

Topic Reply:


 

About the CSS-FAQ forum

Currently Online:

1 Guest

Maximum Online: 20

Forums:

Groups: 3

Forums: 18

Topics: 397

Posts: 834

Members:

There are 1007 members

There are 1 guests

Top Posters:

abc - 57

genius - 47

shane - 46

glowlite.uk - 39

booster - 37

warren - 35

Administrator: admin | Moderators: admin


© Simple:Press Forum - Version 3.1.1 (Build 336)