XOOPS
Forum
Forum Index
General Forums
Community Support
Modules Support
Themes Support
Development
International Support
Module Hack Reviews
Theme Designer Talk
HOME
XOOPS
About XOOPS
Why XOOPS?
XOOPS Features
Terms Of Use
Privacy Statement
License
FORUM
Board Index
Recent Topics
NEWS
THEMES
MODULES
Module @ GitHub
Old Repository
XOOPS FAQ
ACCOUNT
Login
Register
DOWNLOAD XOOPS 2.7.x
Board index
/
XOOPS Community Support forums /
Q and A
/ Redirecting to subdomain
Register
View mode
Newest First
1
Redirecting to subdomain
2006/5/4 6:26
sikey
Not too shy to talk
Posts:
151
Since: 2003/4/29
I am trying to perm. redirect all
http://www.domain.com/modules/mydownloads/singlefile.php?lid=NUMBER
to
http://subdomain.domain.com/modules/mydownloads/21357
I already got the
http://subdomain.domain.com/modules/mydownloads/21357
working, but now i want to 301 all existing singlefile.php urls to the new one... how can i do this in htaccess?
This is what i have so far...
RewriteEngine On
RewriteOptions inherit
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com/modules/mydownloads/([0-9]+).*$ [NC]
RewriteRule ^
http://subdomain.domain.com/modules/mydownloads/
([0-9]+).*$ [R=301,L]
Any help is greatly appreciated :)
Xoops and Adsense Tips!
Software Downloads
Login
Username
Password
Remember me
Reset
Search
Advanced Search
Recent Posts
XOOPS Debugbar 1.3.3 released
7/28 14:48
Mamba
XOOPS 2.7.3 Beta 1 Released
7/28 14:32
Mamba
38 Languages Ready to Download for XOOPS 2.7.1 & 2.7.2
7/25 23:31
Mamba
XOOPS ModuleInstaller 1.6.0 for XOOPS 2.7.x
7/25 4:46
Mamba
Re: XOOPS 2.7.1 Released
7/23 0:26
Mamba
Re: XOOPS 2.7.1 Released
7/23 0:25
Mamba
XOOPS 2.7.1 Released
7/22 23:39
Mamba
Re: XOOPS Debugbar 1.3.0 released
7/21 8:49
Mamba
XOOPS Debugbar 1.3.0 released
7/20 17:01
Mamba
Re: XOOPS 2.7.1-RC1 Released for Testing
7/9 15:07
Mamba
Donat-O-Meter
Stats
Goal:
$15.00
Due Date:
Jul 31
Gross Amount:
$0.00
Net Balance:
$0.00
Left to go:
$15.00