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:
Tue Nov 21, 2017 6:09 pm

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

Free Sitewide Links
For Top Members





SEO 1 Forums > Mod Rewrite >

Help with Mod_Rewrite



Author Thread
zeeshanhashmi
New Member


Joined: 10 Apr 2009
Good Posts: 1

Help with Mod_Rewrite  Reply with quote  

Hello

I am new to this Mod-Rewrite thing. I need your support.

I have a page that has links from A to Z with a list of Goods. Now if I click on A it shows the URL like this :

www.myurl.com?letter=a

But I want a friendly URL like this one.

www.myurl.com/a/

similarly
www.myurl.com/b/
www.myurl.com/c/
www.myurl.com/d/

moreover on that page there are list of goods, and each Goods is a clickable thing, and when it is clicked then the url shows this :

www.myurl.com/showdetails.php?goodid=3

I want it this way:
www.myurl.com/name-of-goods-here

Please guide me how i can enforce the above 2 with Mod-Rewrite

Thanks & Best Regards
Zeeshan
Post Fri Apr 10, 2009 6:02 pm
 View user's profile Send private message
cheapdomainseller
Senior Member


Joined: 01 Mar 2006
Good Posts: 336

 Reply with quote  

Now I'm not very strong in this area. However take a look at the examples below based in the information you've asked for.

Example 1 Directory (www.myurl.com?letter=a ):

Options +FollowSymLinks
RewriteEngine on
RewriteRule www/(.*)/(.*)/$ http://www.myurl.com?$1=$2

Rewritten URL would be: http://www.myurl.com/letter/a /

Example 2 Page (http://www.myurl.com/showdetails.php?goodid=3 ):

Options +FollowSymLinks
RewriteEngine on
RewriteRule goodspage(.*)\.htm$ /showdetails.php?goodid=$1

Rewritten URL would be: http://www.myurl.com/goodspage3.htm


Cheap domain registrations - Very cheap domain name prices.
Post Sat Apr 11, 2009 1:42 am
 View user's profile Send private message Visit poster's website
Steph
Senior Member


Joined: 12 May 2011
Good Posts: 261

 Reply with quote  

it is too complicated to tell you how in a forum post, search on the web/ You tube and you will find instructions. But remember that in a dynamic url site there can be drawbacks as the rewrite engine may hinder the construction of custom queries due to the lack of named variables.


Consumer Marketing
Post Mon Oct 31, 2011 6:02 pm
 View user's profile Send private message Visit poster's website

Reply to topic
Jump to:  
Display posts from previous:      






SEO 1 © 2005-2015 - SEO 1 the SEO Forum