SEO 1 Links

  SEO Blog
  SEO Forum

  Active Topics
  Register
  Memberlist
  FAQ
  Search




SEO Forums

  SEO Forum
  SEM Forum

  Directories
  Link Networks
  Mod Rewrite
  Content
  Revenue Networks

  Marketing
  Social Bookmarking
  Webmastering

  Google
  Yahoo
  MSN

  Search
  Engines

  Link Exchange



Welcome

Time Now:
Fri Sep 10, 2010 1:33 am

All times are GMT

Log in

Username:

Password:

 





 





Who is Online



Most users ever online in a day was 2917 on Thu Oct 25, 2007 4:43 pm
 



Member Websites
music therapy 119
Cell Phone Deals 92
Smart Meters 40
Registry Cleaners 29
GPS Navigation 26
Banner stands 26
Gifts for Pastors 23
WordPress developer 20
Vehicle Tracking 18
Richa 17
Online Backup 14
SEO Services 14
SEO Training 11
SEOArbiter 10
Web Hosting India 10
SEO Company London 9
seo software 8
Digital Agency 8

Free Sitewide Links
For Top Members





SEO 1 Forums > Mod Rewrite >

Subdomains and MOD



Author Thread
hoptoo
Senior Member


Joined: 16 Mar 2005
Good Posts: 203
Location: Hoptoo's Doppelganger
Subdomains and MOD  Reply with quote  

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
Post Sun May 15, 2005 12:28 am
 View user's profile Send private message Visit poster's website
Andrew
Senior Member


Joined: 21 Feb 2005
Good Posts: 997
Location: apache/domlogs
 Reply with quote  

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 Razz ) ...

http://www.webmasterworld.com/forum92/2207.htm
Post Mon May 16, 2005 5:05 am
 View user's profile Send private message Visit poster's website
hoptoo
Senior Member


Joined: 16 Mar 2005
Good Posts: 203
Location: Hoptoo's Doppelganger
 Reply with quote  

Ditto - Ive stopped at that exact page before trying to answer this one.
Think ill send a quick email to the http://geeksonsteroids.com bunch, she has always been helpful.


Restaurant Reviews
Buy Team Jerseys

Learn SEO today
Post Mon May 16, 2005 4:43 pm
 View user's profile Send private message Visit poster's website
praja
New Member


Joined: 31 Jan 2010
Good Posts: 3

 Reply with quote  

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?
Post Sun Jan 31, 2010 7:39 am
 View user's profile Send private message
subhajit
Contributing Member


Joined: 08 Feb 2010
Good Posts: 26

 Reply with quote  

its tough to understand once...

Please use your signature
Post Mon Feb 15, 2010 11:34 am
 View user's profile Send private message Send e-mail

Reply to topic
Jump to:  
Display posts from previous:      





SEO 1 © 2005-2010 - SEO 1 the SEO Forum



Utah SEO | SEO Specialist