Backreferences can only go up to $9 and in most cases this is sufficient. I imagine you can get around this with using extra rewrite rules although I've never tried. The first rewrite rule can do the first 8 substitutions and pass the remainder into $9. Repeat as many times as needed.
See if you can even get mod_rewrite. Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^wacko\.html$ index.html [L] domain.com/.htaccess with the index.html file being there. Then domain.com/wacko.html should show the same thing as index.html, if you do have mod_rewrite.
Its working Nintendo. So it must be supported from my host... Now any suggestions? Thanks for your time.
If that works, then just changing the last line to RewriteRule ^vbulletin/(.*)$ http://www.domain.com/$1 [R=301,L] should do it, if /vbulletin/ is the actual directory name! I once did the same thing, except I moved my boards to another domain.
Hello guys, I am trying to rewite URl: http://mydomain.com/member.php?member=ABC into http://ABC.mydomain.com (better) or http://mydomain.com/ABC but could not. So can you help me with this, I use these sentences: RewriteEngine on RewriteRule ^.htaccess$ -f RewriteCond %{HTTP_HOST} !^www.domain.info RewriteCond %{HTTP_HOST} ^([^.]+).domain.info rewriteCond http://www.domain.info/member.php -d but it does not work I use Blog system of 6al.net thanks, Thanh Nguyen
If your server does not already accept anything.domain.info and show the same content as www.domain.info, you also need to create a wildcard dns entry and possibly a wildcard serveralias. Try this, in domain.info/.htaccess Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^(www\.)?([a-z0-9-]+)\.domain\.info$ [NC] RewriteRule .* member.php?member=%2 [L,QSA]
Thanks but the same thing is happening... Looping. As i was reading some posts i thought that maybe i asked the wrong question. I dont want exactly a redirection. I want a url masking. When i go to the domain.com/vbulletin on the address bar will show domain.com. Is this the same question i asked before? (rewrite=masking) Sorry for that...
Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^([^.]+)$ vbulletin/$1 [L] If you got anything else on the site, it'll be messed up. Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^([^.]+)$ member.php?member=$1 [L] If you got anything else on the site, it'll be messed up.
Thanks for helping me Nintendo. I think the best solution is to move my forum on the root... Reputation added.
Thats pretty interesting, I've never seen more than 9 either.. Why don't you just limit your parameters to 9? You could always combine stuff like instead of: whatever.php?wacko=$1&more=$2&soon=$3 whatever.php?combo=wacko-$1--more-$2--soon-$3&combo2=
I, for the life of me, can't get this url rewriting to work at all on my downloads site. I've tried so many different variations I can't even count them all. Can someone please try to help me? I know everything is OK with Apache so it's something I'm doing. Here's what I have for my .htaccess file now: Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase /downloads/ RewriteRule ^index/cid/(.*)/ /index.php?cid=$1 [L] RewriteRule ^index/cid/(.*) /index.php?cid=$1 [L] RewriteRule ^index/dlid/(.*)/ /index.php?dlid=$1 [L] RewriteRule ^index/dlid/(.*) /index.php?dlid=$1 [L] RewriteRule ^index/ACT/(.*)/id/(.*)/symid/(.*)/sess/(.*)/ /index.php?ACT=$1&id=$2&symid=$3&sess=$4 [L] RewriteRule ^index/ACT/(.*)/id/(.*)/symid/(.*)/sess/(.*) /index.php?ACT=$1&id=$2&symid=$3&sess=$4 [L] Code (markup): Site: http://downloads.littlbuger.info Thanks.
Post an example of the original URL, and how you want it. A directory and sub-domain are two different things.
OK, Sure. For the categories on my site, the links now are like: http://downloads.littlbuger.info/index.php?cid=46 And I want them like: http://downloads.littlbuger.info/index/cid/46 The downloads/file description link now is like: http://downloads.littlbuger.info/index.php?dlid=576 And I want them like: http://downloads.littlbuger.info/index/dlid/576 And finally the actual download link to download each file is like: http://downloads.littlbuger.info/in...mid=576&sess=54822da15dab2e7155b1a2171150081b And I want them like: http://downloads.littlbuger.info/index/ACT/dl/id/575/symid/576/sess/54822da15dab2e7155b1a2171150081b Or possibly with a .htm extension at the end instead of just a directory structure, or maybe even just one large file, who knows. The above was what I was trying to do with my first post though. And yes, this is a subdomain. Thanks for your help!
subdomain.domain.com/.htaccess Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^index/ACT/dl/id/([^.]+)/symid/([^.]+)/sess/([^.]+)$ index.php?ACT=dl&id=$1&symid=$2&sess=$3 [L] RewriteRule ^index/dlid/([^.]+)$ index.php?dlid=$1 [L] RewriteRule ^index/cid/([^.]+)$ index.php?cid=$1 [L] Even better would be with out the session IDs. Google hates those!!
Yes, I enabled the session IDs in my downloads script due to some serious leeching issues of my files and it seems to have helped, but then again, if it really hurts me as far as SEO goes, I may turn that off. As for the rewrites, no go. I tried that and it still didn't work. Is there some configuration that could be preventing this on my server? I know that Apache is processing the .htaccess files as I use them elsewhere with other rules and they work just fine. Thanks so much for your help.
Do a little test Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^wacko\.html$ index.php [L] should make subdomain.domain.com/wacko.html show the index page. If that simple test doesn't work, nothing will.
Strange... that doesn't work. I mean, it doesn't work for my main site, http://downloads.littlbuger.info when I put it into the .htaccess file in that subdomain folder, but if I add it to the main/root domain .htaccess file (among other things already in there) where http://www.littlbuger.info is, it works fine. Must be something with the subdomain or subfolder, I'm not sure. I'll look into it, but until then, any suggestions? Thanks.