Support Forums

Old 09-18-2008, 04:58 PM   #1
Knowledge Seeker
 
 
Join Date: Feb 2008
Location: Ohio
Posts: 29
Rep Power: 5
scott17b is on a distinguished road
Default url rewrite

I am trying to rewrite my some of my urls. I posted the following in my .htaccess file and it isnt working

RewriteRule ^page/about\.html$ pages.php?page=3 [NC]

I am trying to make the generated page of www.yoursite/page/3.html
into www.yoursite/page/about.html

note: I am running 68 classifieds seo friendly urls. I have read articles on it but apparently Im still missing something!

any help is appreciated!

Scott
scott17b is offline   Reply With Quote
Old 09-18-2008, 06:16 PM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,776
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

How about trying this:
RewriteRule ^about\.html$ pages.php?page=3 [NC]

Of course that isn't what you are after but if it works we can go from there.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 09-18-2008, 06:52 PM   #3
Knowledge Seeker
 
 
Join Date: Feb 2008
Location: Ohio
Posts: 29
Rep Power: 5
scott17b is on a distinguished road
Default

Eric,
I tried the code under:

#pages
RewriteRule ^page/([0-9]+)\.html$ pages.php?page=$1 [NC]
RewriteRule ^about\.html$ pages.php?page=3 [NC]

It didnt work.
I tried removing the code and placing just what you suggested and it didnt work.

#pages
RewriteRule ^about\.html$ pages.php?page=3 [NC]

anything else?
scott17b is offline   Reply With Quote
Old 09-18-2008, 07:59 PM   #4
Moderator
 
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,182
Rep Power: 59
juven14 is a jewel in the rough
Default

be sure what you tried goes before existing rules, otherwise the other rules for pages will be processed and quit when a match is found.

Code:
#pages
RewriteRule ^page/about\.html$ pages.php?page=3 [NC]
RewriteRule ^page/([0-9]+)\.html$ pages.php?page=$1 [NC]
__________________
TemplateCodes.com
juven14 is offline   Reply With Quote
Old 09-18-2008, 08:10 PM   #5
Knowledge Seeker
 
 
Join Date: Feb 2008
Location: Ohio
Posts: 29
Rep Power: 5
scott17b is on a distinguished road
Default

juven14,

Thanks for the input i placed both versions of the code before the existing rule, one at a time and still nothing. (i did delete my browser history before checking each one) ??? Im puzzled!
__________________
Thanks,
Scott
http://www.BoatingSwapShop.com
scott17b is offline   Reply With Quote
Old 09-18-2008, 08:19 PM   #6
Moderator
 
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,182
Rep Power: 59
juven14 is a jewel in the rough
Default

can you pm me your .htaccess contents? Also, what do you mean by not work, you are getting a 501 error or the page simply doesn't redirect? You type what url and you get what url?
__________________
TemplateCodes.com
juven14 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sellerstore url rewrite wesse249 Feature Requests 1 09-10-2008 06:07 PM
United Kingdom Unregistered Pre Sales Questions 8 09-21-2007 11:20 PM


All times are GMT -4. The time now is 07:58 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0