|
|
|
| |
Welcome
Time Now: Fri Sep 10, 2010 1:33 am
All times are GMT
|
|
|
|
|
|
|
|
|
|
| |
SEO 1 Forums
>
Mod Rewrite >
Subdomains and MOD
hoptoo
Senior Member

Joined: 16 Mar 2005
Good Posts: 203
Location: Hoptoo's Doppelganger |
| Subdomains and MOD |
|
|
Ok im frustrated as MOD rewrite tends to make people
Trying to rewrite subdomains and having a B*!&@ of a time, I have left it with a workaround for now.
Currently the MOD just rewrites my PHP to appear as HTML, based on personal preference only.
as such>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
RewriteRule ^huntersville-lake-norman/(.*).html$ index.php [L,NC]
RewriteRule ^featured/listing-(.*).html$ feature.php?listing=$1 [L,NC]
RewriteRule ^featured/home-(.*).html$ feature.php?prop_number=$1 [L,NC]
RewriteRule ^index.html$ index.php [L,NC]
RewriteRule ^(.*)/art(.*)-(.*)-(.*)-(.*)-(.*).html$ $1/index.php?art=$2&parta=$3&partb=$4&partc=$5&partd=$6 [L,NC]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Nothing fancy......
Trying to rewrite as follows.
subdomain.domain.com/my-keyword-page.html
TO
domain.com/folder/index.php?sub=$subdomain&one=$my&two=$keyword&three=$phrase
I have seen many complicated appraoches, and none seem right. I dont want to redirect to this folder, since I want the different pages listed under each subdomain seperately.
A wildcard solution would be nice as well, but I have only about 7 subdomains Im trying to work this with for now, so static is fine, and simple is clutch.
Restaurant Reviews
Buy Team Jerseys
Learn SEO today |
Sun May 15, 2005 12:28 am |
|
|
Andrew
Senior Member

Joined: 21 Feb 2005
Good Posts: 997
Location: apache/domlogs |
That's a tricky one.
From my research it appears that the subdomain part of the problem makes things more complex as an infinate loop must be prevented with the associated rules.
Don't know if this would be of any help (hope you can see it, sometimes WMW locks me out ) ...
http://www.webmasterworld.com/forum92/2207.htm |
Mon May 16, 2005 5:05 am |
|
|
praja
New Member
Joined: 31 Jan 2010
Good Posts: 3
|
I've been recently reading up on Apache's mod rewrite feature. At the moment I'm a bit puzzled about how it works exactly but I'll figure it out eventually.For instance, say I want news.php?cat=tech&id=2 to be like /news/tech/2/ and tutorials.php?cat=html&id=65 to be like /tutorials/html/65/, would I have to have a separate rewrite rule for each? 2 different pages = 2 different rules? |
Sun Jan 31, 2010 7:39 am |
|
|
subhajit
Contributing Member
Joined: 08 Feb 2010
Good Posts: 26
|
its tough to understand once...
Please use your signature |
Mon Feb 15, 2010 11:34 am |
|
|
|
|
|
|
|
|
|