apache Mod_Rewrite

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
svankamon
-


Joined: 01 Apr 2007
Posts: 148
Location: Chesterfield UK

PostPosted: Wed Jun 11, 2008 5:03 pm    Post subject: apache Mod_Rewrite Reply with quote

Hi, i have a script which uses apache mod_rewrite (for SEO friendly URLS.). Will this effect the links in the urls. The site as a section where i can add pages myself. I add on and the url is:

http://www.mydomain.com/page-7-a-new-test-page.php

but the page given and which works from admin section is:

http://www.mydomain.com/site_page.php?page=7

A New Test Page is the title of the page, there are others too.?

also the to detailspage doesnt work. This is of course an advertising type script where you link to ad details page.

Many thanks.

Oh im posting in here because the support seems pretty crap for the script. They dont realize i need a second script.?? lol. Many thanks for any help in this. cheers.
Back to top View user's profile Send private message Send e-mail
svankamon
-


Joined: 01 Apr 2007
Posts: 148
Location: Chesterfield UK

PostPosted: Wed Jun 11, 2008 5:05 pm    Post subject: ADDITION Reply with quote

Sorry im using abyss x2 server. php5, mysql 5,perl 5x, etc..
Back to top View user's profile Send private message Send e-mail
svankamon
-


Joined: 01 Apr 2007
Posts: 148
Location: Chesterfield UK

PostPosted: Wed Jun 11, 2008 7:39 pm    Post subject: Reply with quote

My htaccess file reads the following redirects. Can someone tell me whta this means. Ive added them to abyss url rewrite as rules
like this in abyss url rewrite:

^page-([0-9]+)-(.*)$

Redirect to:

site_page.php?page=$1

RewriteEngine on
RewriteRule ^page-([0-9]+)-(.*)$ site_page.php?page=$1
RewriteRule ^browse-([0-9]+)-([0-9]+)-([0-9]+)-(.*)$ site_browse.php?cat=$1&page=$2&item=$3
RewriteRule ^detail-([0-9]+)-(.*)$ site_detail.php?listing=$1
RewriteRule ^contact-([0-9]+)-(.*)$ site_detail_contact.php?listing=$1
RewriteRule ^tellfriend-([0-9]+)-(.*)$ site_detail_tellfriend.php?listing=$1
RewriteRule ^favourite-([0-9]+)-(.*)$ site_detail_favourite.php?listing=$1
RewriteRule ^comment-([0-9]+)-(.*)$ site_detail_comment.php?listing=$1

In all cases i have left all default settings.

Any help would be apreciated. Many thanks.
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group