htaccess help
Hello guys.
I have a forum: mywebsite.com
and a site: mywebsite.com/site/
Both on the same domain name.
Before 10 days I did this redirection:
mywebsite.com to mywebsite.com/forum/
So now I have:
mywebsite.com - > mywebsite.com/forum/
site: mywebsite.com/site/
Now I want to make mywebsite.com redirect to /site/ because I want to make mywebsite.com/site/ as the main site..so when visitors go to mywebsite.com goes to /site/ directly.
I want to redirect all these using 301 to /forum/
faq.php
feed.php
index.php
mcp.php
memberlist.php
posting.php
report.php
search.php
ucp.php
viewforum.php
viewonline.php
viewtopic.php
to:
\forum\faq.php
\forum\feed.php
\forum\index.php
\forum\mcp.php
\forum\memberlist.php
\forum\posting.php
\forum\report.php
\forum\search.php
\forum\ucp.php
\forum\viewforum.php
\forum\viewonline.php
\forum\viewtopic.php
Please someone can help me?
Thanks
Comments
Nginx? Or apache? or what :P
It says htaccess on the title so must be apache. Nginx does not support htacess.
OMG true xD
Sorry u_u
stupid answer : no you can't. try to use / instead \ :P
mmm.. i'll try this first for making sure all is right (i didn't use apache for a long time except in my ISPConfig server).
I forgive you ........ this time :P
Don't hurt me please u_u
Lol
Google
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
Something like this ...
Not tested.
You could use rewrite rules instead, but redirects are faster & more efficient.