When I use Modrewrite i get a server 500 error. I added the following code to my .htaccess
4. # From Ultimate Seo Urls version 2.1 to 3.X
5. RewriteCond %{REQUEST_FILENAME} !-f
6. RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=
$2&%{QUERY_STRING} [L,R=301]
7.
8. RewriteCond %{REQUEST_FILENAME} !-f
9. RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%
{QUERY_STRING} [L,R=301]
10.
11. RewriteCond %{REQUEST_FILENAME} !-f
12. RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=
$2&%{QUERY_STRING} [L,R=301]
13.
14. RewriteCond %{REQUEST_FILENAME} !-f
15. RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%
{QUERY_STRING} [L,R=301]
16.
17. RewriteCond %{REQUEST_FILENAME} !-f
18. RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?
main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L,R=301]
19.
20. RewriteCond %{REQUEST_FILENAME} !-f
21. RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?
main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L,R=301]
22.
23. RewriteCond %{REQUEST_FILENAME} !-f
24. RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L,R=301]
Last edited by Blitz49; 1 Mar 2007 at 11:03 PM.
You don't add the line numbers silly.
And why are you adding 2.1 upgrade RewriteRules if you are doing a new install?
Here is my .htaccess file. I get 500 server error with this, and page base to blank.
RewriteEngine On
RewriteBase /
# From Ultimate Seo Urls version 2.1 to 3.X
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=
$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%
{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=
$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%
{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?
main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?
main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L,R=301]
make sure each rewrite rule is on a single line.
When I use the following code in my .htaccess i get "The page isn't redirecting properly"
RewriteEngine On
RewriteBase /
# Seo Urls version 3.x
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index\.php?seo_url=$1&%{QUERY_STRING} [L]
or
# Seo Urls version 3.x
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index\.php/$1 [L,QSA]
that corrected the 500 Server error, but still getting the The page isn't redirecting properly.
The following code in my .htaccess i get "The page isn't redirecting properly" as well.
RewriteEngine On
RewriteBase /
# Seo Urls version 3.x
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index\.php?seo_url=$1&%{QUERY_STRING} [L]
or
# Seo Urls version 3.x
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index\.php/$1 [L,QSA]
Please post your .htaccess in its entirety (please use code tags) as well as your Seo Url settings.
The only way I can re-create the problem is if I put in the 2.1x to 3.x upgrade rules and set the default extension to ".html", which is of course a silly thing to do since #1 you aren't changing the extension and do not need the upgrade rules as stated in the guide and #2 it will obviously cause an infinite loop in mod rewrite.
Last edited by dreamscape; 1 Mar 2007 at 11:27 PM.
I changed the html_output.php
/**
* Seo Urls zen_href_link replacement
*/
function zen_href_link($page = '', $parameters = '', $connection = 'NONSSL',
$add_session_id = true, $search_engine_safe = true, $static = false,
$use_dir_ws_catalog = true) {
return $GLOBALS['SeoUrl']->buildHrefLink($page, $parameters, $connection,
$add_session_id, $static, $use_dir_ws_catalog);
}
/*
* The HTML href link wrapper function
*/
function zen_href_link_stock($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true, $static = false, $use_dir_ws_catalog = true) {
global $request_type, $session_started, $http_domain, $https_domain;
Still getting the The page isn't redirecting properly Here is the .htaccess I am using:
RewriteEngine On
RewriteBase /
# Seo Urls version 3.x
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index\.php?seo_url=$1&%{QUERY_STRING} [L]
Admin settings:
Seo Urls Status On
301 Redirection Status On
Page Base index.php (leaving blank gives me the same problem)
Default Extension
Url Plugins
Character Plugins
Bookmarks