Simple Redirect
5 posts
• Page 1 of 1
- CitadelStudios
-
- Posts: 3
- Joined: 01 May 2013, 12:44
Simple Redirect
Is it possible to simply set up a simple redirect like:
http://www.domain.com/admin
Actually goes to http://www.domain.com/cms/admin
Any help with this would be greatly appreciated.
TIA![Smile :-)](./images/smilies/icon_e_smile.gif)
http://www.domain.com/admin
Actually goes to http://www.domain.com/cms/admin
Any help with this would be greatly appreciated.
TIA
![Smile :-)](./images/smilies/icon_e_smile.gif)
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Simple Redirect
Hello,
Easy!
Regards
Andrew
Easy!
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP:Host} ^(?:www\.)domain\.com$ [NC]
RewriteRule ^admin$ /cms/admin [NC,R=301,L]
Regards
Andrew
- CitadelStudios
-
- Posts: 3
- Joined: 01 May 2013, 12:44
Re: Simple Redirect
Hey HeliconAndrew...thanks for the response to my question. Greatly appreciated!
Is it possible to set this up for any domain so regardless of the domain, it will follow the rewrite rule?
Thanks again![Smile :-)](./images/smilies/icon_e_smile.gif)
Is it possible to set this up for any domain so regardless of the domain, it will follow the rewrite rule?
Thanks again
![Smile :-)](./images/smilies/icon_e_smile.gif)
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Simple Redirect
Remove RewriteCond line and put the rule in http.conf. Easy as that.
Regards
Andrew
Regards
Andrew
- CitadelStudios
-
- Posts: 3
- Joined: 01 May 2013, 12:44
Re: Simple Redirect
Hello HeliconAndrew...I posted this a little while ago and have been going nuts migrating servers over. I just wanted to thank you for the help...greatly appreciated ![Smile :-)](./images/smilies/icon_e_smile.gif)
![Smile :-)](./images/smilies/icon_e_smile.gif)
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 22 guests