Alright, I have another request. How would I remove - I believe it would be - the cPath from the url? I'm looking to remove the SEFU_CATEGORY_NAME and the numbers that follow it before the next slash.
I imagine it would have something to do with the following line in functions_sefu.php:
But I'm not sure if I just delete it, modify it, or what.Code:$path = str_replace('cPath-', SEFU_CATEGORY_NAME . '-', $path);
Hello, Please help
I believe I have followed the instruction to instal and upgrade the SEFU, for ver 1.3, including loading the original files, loading the update file, installing the sql and uploading the htaccess file.
But I get a page not found error with every page selected, when the use friendly urls is turn on. When it is turned off, the site works as expected.
Please point me in the right direction.
Mike
Mike,
You are running on Apache correct?
If so, please post the contents of your includes/extra_configures/sefu_defines.php file and your .htaccess file and a link to your site if available (PM if needed) and I will try to help...
Jeff
Thank you
I believe I am being hosted on Linux, do I have to be on Apache? My existing site is on a windows server, but my SEO company suggested that I use a linux server, so I am attempting to change.....
My site is on a test server at http://protrolleycom.site.securepod.com/
<?php
/*
* these statements define 'directory names' in the url.
*/
// if you change SEFU_PAGE_NAME to something different than 'pages',
// or SEFU_MAIN_PAGE_NAME to something different than 'main', you
// have to alter .htaccess according to your changes!
define('SEFU_PAGE_NAME', 'pages');
define('SEFU_MAIN_PAGE_NAME', 'main');
define('SEFU_CATEGORY_NAME', 'category');
define('SEFU_PRODUCT_NAME', 'product');
define('SEFU_PRODUCT_INFO_NAME', 'productinfo');
?>
RewriteEngine on
# set RewriteBase to DIR_WS_CATALOG
RewriteBase /
RewriteRule ^pages-(.+)\.html index.php/pages-$1 [L]
# Uncomment the next three statements if you want to go to the main page in case an URL is entered that requests a non existing file.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*) . [R]
# Uncomment the next two statements to have http://yourserver.com/ automatically redirected to http://yourserver.com/pages-main/index.html
# NOTE: THIS MIGHT ACTUALLY HINDER SITE INDEXING
#RewriteCond %{REQUEST_URI} ^(.*)/$
#RewriteRule ^(.*) pages-main/index.html [R]
Thank you
Mike
Hi Mike,
Yes, you'll need to be hosted on Apache as IIS does not support URL rewrite which is necessary for the .htaccess file configuration.
Everything you posted at first glance looks fine and I believe that once you move the site to an Apache server it should work as described.
Best of luck!
Jeff
Hello Jeff, Thank you
I am sorry, but I am strugerling here a bit,
I contacted the hoster who replied.
Your account is already on a Linux server. Our Windows plans use the IIS internet server which does not allow URl rewrite. If you need apache then you should stay where you are.
Is there anything that I should look for?
Thanks
Mike
Hello Jeff
The hoster has made some changes to the global Php variables and it now seems to work
Thanks
Mike
[QUOTE=JeffD;296564]DMUK:
The fix for the problem you reported is as follows:
In includes/functions/html_output.php
Search for:
Replace with:Code:$link .= $path . '/' . $filename;
rwoody:Code:$link .= str_replace('//', '/', $path . '/' . $filename);
Sorry, I honestly don't know the answer to that one. If you try it please let us know? tks!
The code mentioned is not in the file that I have and I have the latest release.
I'll keep looking for an answer.
Mike:
Glad you got it working! ...and yes it needs to run on Apache since IIS does not support URL re-write.
Woody:
Okay, I have update the archive SEFU_for_1.3x.zip to include the above mentioned change.
Jeff
Bookmarks