|
|
#1 |
|
Knowledge Seeker
Join Date: Feb 2008
Location: Ohio
Posts: 29
Rep Power: 5 ![]() |
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 |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,776
Rep Power: 110 ![]() |
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 |
|
|
|
|
|
#3 |
|
Knowledge Seeker
Join Date: Feb 2008
Location: Ohio
Posts: 29
Rep Power: 5 ![]() |
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? |
|
|
|
|
|
#4 |
|
Moderator
|
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] |
|
|
|
|
|
#5 |
|
Knowledge Seeker
Join Date: Feb 2008
Location: Ohio
Posts: 29
Rep Power: 5 ![]() |
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! |
|
|
|
|
|
#6 |
|
Moderator
|
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?
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |