SEO | Link Popularity | Search Engine Consulting | SEO Tutorial | SEO Tools | SEO Forum
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-04-2004, 07:02 AM
brainpulse brainpulse is offline
Banned
 
Join Date: Jan 2004
Posts: 96 brainpulse is on a distinguished road
MOD_Rewrite

IF have this link

links to xxx dot com are not permitted

I need to get this to something like


Can you please help

Last edited by seo guy : 07-04-2004 at 07:45 PM.
Reply With Quote
  #2  
Old 07-04-2004, 07:03 AM
brainpulse brainpulse is offline
Banned
 
Join Date: Jan 2004
Posts: 96 brainpulse is on a distinguished road
Obviously the Links are generated dynamically

This link posted above are generted dynamically.
Reply With Quote
  #3  
Old 07-15-2004, 07:19 AM
xml xml is offline
SEO Junior and a half
 
Join Date: Jun 2004
Posts: 39 xml is on a distinguished road
You might wanna give an example of the dynamic url, and the static url you desire.
__________________
XML training -- Cell Phones
Reply With Quote
  #4  
Old 07-16-2004, 02:09 AM
brainpulse brainpulse is offline
Banned
 
Join Date: Jan 2004
Posts: 96 brainpulse is on a distinguished road
please assist

Reply With Quote
  #5  
Old 07-17-2004, 03:29 AM
xml xml is offline
SEO Junior and a half
 
Join Date: Jun 2004
Posts: 39 xml is on a distinguished road
RewriteRule (.*).php /page.php?cat=$1

This will work as long as you don't have folders named the same as your category or, if you have 2 categories the same.

If you wanted it failsafe try:

RewriteRule (.*)/(.*).php /page.php?id=$1&cat=$2
__________________
XML training -- Cell Phones
Reply With Quote
  #6  
Old 07-17-2004, 03:24 PM
owlcroft's Avatar
owlcroft owlcroft is offline
Premium member
 
Join Date: May 2004
Location: Ritzville, Washington, U.S.A.
Posts: 208 owlcroft is on a distinguished road
Better is to disguise altogether the php extension. The exact code would depend on to what extent you want to failsafe the characters used in category; if we assume, for discussion, that category must be entirely numeric, then you could use:
RewriteRule ^([0-9]+)\.html$ /category.php?id=1&cat=$1 [L]

That would rewrite a call of the form:
http://www.domain.com/73496.html

to a call to--

http://www.domain.com/category.php?id=1&cat=73496
A necessary assumption here is that you have no actual files in your root directory whose names are just some numerals followed by .html.

If category can be more complex than just numerals, then the term shown above as [0-9]+ would need to be a "regular expression" denoting the possible form. (For another example, if category were limited to capital letters and numerals, that term would be [0-9A-Z]+).
__________________
Cordially,
Eric Walker, webmaster
SEO Tools, Toys, and Packages : free tools to directly SEO-augment your sites;
for example, quickly add add over 100,000 relevant white-hat pages to any site.
Reply With Quote
  #7  
Old 07-19-2004, 12:11 AM
seo guy's Avatar
seo guy seo guy is offline
Uber Uber Mod
 
Join Date: Oct 2003
Posts: 2,441 seo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud of
wow look at all the mod rewrite discussion that can be transfered to http://www.mod-rewrite.com/forum/
__________________
Vote for your favorite SEO site and tell your visitors about this great place, please link to us http://www.seo-guy.com with the anchor text SEO and let them know how you feel
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Login/Register
User Name
Password
Remember Me?

Forum Links
Forum Home
SEO Forum
Internet Marketing Forum
Web Design Forum
Web Hosting Forum
Programming Forum
SEO Chat

Quick Links
Forum Home
New Posts
Mark Forums Read
Open Buddy List
User Control Panel
Edit Avatar
Edit Profile
Edit Options
Miscellaneous
Subscribed Threads
My Profile

Search Forums

Advanced Search
All times are GMT -8. The time now is 04:23 AM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.