Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Ultimate SEO URLs - by Chemo


Guest

Recommended Posts

FWR Media,

 

Thanks for reply and advice.

Well, my store placed in a root of my domain, not in the special folder, so I just added this to end of my file:

 

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

 

RewriteCond %{QUERY_STRING} ^options\=(.*)$

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2%1

 

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}

 

Obviously something wrong with .htaccess file but I have no knowledge to correct this.

 

Yes, it is linux apache server.

I'm not sure if my server have mod_rewrite installed and have no idea where I can check allowOverride. :(

 

Thanks for any help.

 

You need to contact those who run your server, I'm sure they will enable the relevant features for you.

Link to comment
Share on other sites

  • Replies 1.9k
  • Created
  • Last Reply

Top Posters In This Topic

You need to contact those who run your server, I'm sure they will enable the relevant features for you.

 

I found reference to AllowOverwrite in .htaccess file. It was commented. I tried to uncomment, so it was look like

 

 

 

# $Id: .htaccess 1739 2007-12-20 00:52:16Z hpdl $

#

# This is used with Apache WebServers

#

# For this to work, you must include the parameter 'Options' to

# the AllowOverride configuration

#

# Example:

#

 

# I UNCOMMENTED NEXT LINES, BUT IT DIDN'T HELP ME

 

<Directory "/usr/local/apache/htdocs">

AllowOverride Options

</Directory>

 

#

# 'All' with also work. (This configuration is in the

# apache/conf/httpd.conf file)

 

# The following makes adjustments to the SSL protocol for Internet

# Explorer browsers

 

#<IfModule mod_setenvif.c>

# <IfDefine SSL>

# SetEnvIf User-Agent ".*MSIE.*" \

# nokeepalive ssl-unclean-shutdown \

# downgrade-1.0 force-response-1.0

# </IfDefine>

#</IfModule>

 

# If Search Engine Friendly URLs do not work, try enabling the

# following Apache configuration parameter

 

# AcceptPathInfo On

 

# Fix certain PHP values

# (commented out by default to prevent errors occuring on certain

# servers)

 

# php_value session.use_trans_sid 0

# php_value register_globals 1

 

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

 

RewriteCond %{QUERY_STRING} ^options\=(.*)$

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2%1

 

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}

 

So, I should ask my host server if mod_rewrite installed, right?

Sorry for such probably stupid questions.

Thanks

Edited by AlwaysNewbie

Computers777dotcom

Link to comment
Share on other sites

Ok, I was told that mod_rewrite IS installed by default.

Probably it will help to find a problem:

It shows me Internal Server Error even if I uncoment only next lines and keep all other lines commented.

<Directory "/usr/local/apache/htdocs">

AllowOverride Options

</Directory>

 

:(

Edited by AlwaysNewbie

Computers777dotcom

Link to comment
Share on other sites

Ok, I was told that mod_rewrite IS installed by default.

Probably it will help to find a problem:

It shows me Internal Server Error even if I uncoment only next lines and keep all other lines commented.

<Directory "/usr/local/apache/htdocs">

AllowOverride Options

</Directory>

 

:(

 

httpd.conf settings are NOT allowing this to work. Either they have to provide permissions for you to locally enable AllowOverride All or they have to set it up server side.

 

Tell them you want to use RewriteRules and to SORT IT! it's their job fer gods sake.

Link to comment
Share on other sites

httpd.conf settings are NOT allowing this to work. Either they have to provide permissions for you to locally enable AllowOverride All or they have to set it up server side.

 

Tell them you want to use RewriteRules and to SORT IT! it's their job fer gods sake.

 

Thanks, I just sent them my request.

Computers777dotcom

Link to comment
Share on other sites

Ok, I guess I realy need help... cannot get my store back:

I tried to uninstall v2.1e and install v2.1d:

downloaded version 2.1d,

uploaded 2.1 files, recovered some old files from backup, edited them and uploaded.

Well, I didn't change .htacess file cause I had Internal Server problem before, so I decided make it later.

I got an error when I tried to open main page, but I opened admin panel fine. Tried to correct an error, check files and so on.

Finaly I tried to at least recover all back. No way. :(

Even after I undo all changes some how I saw in admin panel SEO URLs...

I tried again to recover but now I can't even open admin panel.

 

If I try open admin panel I got:

--------------------------------------

Warning: main(includes/functions/general.php): failed to open stream: No such file or directory in /home/www/computers777.com/admin/includes/application_top.php on line 72

 

Warning: main(includes/functions/general.php): failed to open stream: No such file or directory in /home/www/computers777.com/admin/includes/application_top.php on line 72

 

Warning: main(includes/functions/general.php): failed to open stream: No such file or directory in /home/www/computers777.com/admin/includes/application_top.php on line 72

 

Fatal error: main(): Failed opening required 'includes/functions/general.php' (include_path='.:/usr/local/lib/php') in /home/www/computers777.com/admin/includes/application_top.php on line 72

 

If I try to open my main page I have:

--------------------------------------------

Warning: main(includes/functions/html_output.php): failed to open stream: No such file or directory in /home/www/computers777.com/includes/application_top.php on line 115

 

Warning: main(includes/functions/html_output.php): failed to open stream: No such file or directory in /home/www/computers777.com/includes/application_top.php on line 115

 

Warning: main(includes/functions/html_output.php): failed to open stream: No such file or directory in /home/www/computers777.com/includes/application_top.php on line 115

 

Fatal error: main(): Failed opening required 'includes/functions/html_output.php' (include_path='.:/usr/local/lib/php') in /home/www/computers777.com/includes/application_top.php on line 115

 

It looks simple like missing file, but files are there.

Please help!

Cannot figure it out.

Thanks for any advice.

Edited by AlwaysNewbie

Computers777dotcom

Link to comment
Share on other sites

This morning I opened the site and it opened fine (well, I removed Ultimate SEO yesterday, but could make it work).

I think that cache plays games with me.

After awhile I will try to install Ultimate SEO 2.1d again.

Do the Ultimate SEO 2.1d updated

Link to comment
Share on other sites

Do the Ultimate SEO 2.1d updated

 

That's what I tried to do. The thing is everytime I write something in .htaccess file I got Internal Server Error, it drives me crazy. One thing more, probably not so important: instructions says to find block of code in html_output.file to replace. The block of code to find ends with }</b> , but in my file I don't see any </b>, it confuses me a bit.

Thanks for any help.

Computers777dotcom

Link to comment
Share on other sites

That's what I tried to do. The thing is everytime I write something in .htaccess file I got Internal Server Error, it drives me crazy. One thing more, probably not so important: instructions says to find block of code in html_output.file to replace. The block of code to find ends with }</b> , but in my file I don't see any </b>, it confuses me a bit.

Thanks for any help.

 

The </b> is a typo in the original instructions.

Edited by FWR Media
Link to comment
Share on other sites

The </b> is a typo in the original instructions.

 

Thanks.

I thought that probably that's what it is.

 

Now I tried to figure it out, why I got an error if I write anything in .htaccess file.

 

For example if I uncomment lines

 

# <Directory "/usr/local/apache/htdocs">

# AllowOverride Options

# </Directory>

 

and make it

 

<Directory "/usr/local/apache/htdocs">

AllowOverride Options

</Directory>

 

I got an error right away.

Computers777dotcom

Link to comment
Share on other sites

Thanks.

I thought that probably that's what it is.

 

Now I tried to figure it out, why I got an error if I write anything in .htaccess file.

 

For example if I uncomment lines

 

# <Directory "/usr/local/apache/htdocs">

# AllowOverride Options

# </Directory>

 

and make it

 

<Directory "/usr/local/apache/htdocs">

AllowOverride Options

</Directory>

 

I got an error right away.

Do you edit the file on your pc and then ftp it to the web?

Link to comment
Share on other sites

Hi

 

I have installed...I think. Are there any instructions for use once installed?

 

Thanks

 

I'd say leave it well alone, the standard settings are good and you'll be fine.

Link to comment
Share on other sites

Ok. I was told that this contrib will allow me to edit my page titles. Is this correct?

 

Nope

 

you need one of the meta tag contributions for that.

Link to comment
Share on other sites

I have some problem about the urls.

for example,

my product name is:"2.0 Mage Pixels CMOS 1.5 Inch TFT Display Digital Camcorders"

 

the url is: http://www.mysite.com/mage-pixels-cmos-inc...ders-p-138.html

it looks like the number and the capital word like GPS could not normally show in URL.

 

and the new page added in infobox also have some url say http://www.mysite.com/-i-1.html

 

Could anybody help me out of this, thanks very much!

 

best regards,

Link to comment
Share on other sites

Hi, I tried to install Ultimate_SEO_URLSv21d_UPDATED_1_2 but after it, I get ERROR Code:

 

Not Found

 

The requested URL /shop/antenna-24-ghz-c-39.html was not found on this server.

Apache/2.2.3 (Ubuntu) PHP/5.2.1 Server at 192.168.1.117 Port 80

 

My .htaccess looks like this :

# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

<IfModule mod_setenvif.c>
 <IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
		 nokeepalive ssl-unclean-shutdown \
		 downgrade-1.0 force-response-1.0
 </IfDefine>
</IfModule>

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)

<IfModule mod_php4.c>
 php_value session.use_trans_sid 0
 php_value register_globals 1
</IfModule>


Options +FollowSymLinks
RewriteEngine On 
RewriteBase /shop/

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}

 

Can you give me a little push?

thank you in advance.

Edited by chvasile
Link to comment
Share on other sites

Just installed Ultimate SEO URL and I'm getting this error message,

 

SEO URLs

 

Warning: call_user_func(tep_reset_cache_data_seo_urls) [function.call-user-func]: First argument is expected to be a valid callback in /home/wihirt/public_html/catalog/admin/includes/functions/general.php on line 1351

 

This is just above the SEO URL control panel in admin

 

Any ideas?

 

Thxs

 

Peder

Link to comment
Share on other sites

Just installed Ultimate SEO URL and I'm getting this error message,

 

SEO URLs

 

Warning: call_user_func(tep_reset_cache_data_seo_urls) [function.call-user-func]: First argument is expected to be a valid callback in /home/wihirt/public_html/catalog/admin/includes/functions/general.php on line 1351

 

This is just above the SEO URL control panel in admin

 

Any ideas?

 

Thxs

 

Peder

 

Yup

 

The instructions explicitly say ..

 

The update file reset_seo_cache.php should be uploaded to admin/includes/reset_seo_cache.php
Link to comment
Share on other sites

Hi folks,

I'm about to embark on a site revamp and rather than remove/re-install etc I'm going to start from scratch and keep a log of what gets updated and when for easy fixes in future.

 

As I'm keen to use Chemo's contrib (rather than SEO G which only allows a single language), can someone please advise what the last stable release was please? I see there are a number of issues with some of them which aren't necessarily easy to resolve.

It appears 2.1D updated is the one to go for?

 

Thanks

Hand made jewellery and tiaras on our website

 

Please bear with me. Im an osC noobie!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...