Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Related Forum Posts
  1. Resources needed in Spanish Urgently (In: General Search Engine Optimization)
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
Member Message

wotan2525
Joined: Eons Ago
# Posts: 3

View the profile for wotan2525 Send wotan2525 a private message

Posted: 08/17/2004 09:17 am
Edit Message Delete Message Reply to this message

I am new to these forums, and trying to optimize my rankings. I have a dynamic site (mambo) that does not have search-friendly urls. I've been reading all morning about mod-rewrite, and I think it should be working but its not!

Here is my .htaccess file:

RewriteEngine on
RewriteRule ^option/([A-Za-z]+)/Itemid/([0-9])/$ index.php?option=$1&Itemid=$2


My website is www.usedlasers.com -- thanks for any and all help with this!



davaddavad
Joined: Aug 02, 2001
# Posts: 928

View the profile for davaddavad Send davaddavad a private message

Posted: 08/17/2004 09:53 am
Edit Message Delete Message Reply to this message

here is a tutorial maybe the answer lies there. http://www.phpfreaks.com/tutorials/23/0.php
hth dave and welcome to the forums wotan2525



wotan2525
Joined: Eons Ago
# Posts: 3

View the profile for wotan2525 Send wotan2525 a private message

Posted: 08/17/2004 01:26 pm
Edit Message Delete Message Reply to this message

According to everything I read on there, it should be working. I don't have access to the httpd.conf (at least I dont think I do) but phpinfo tells me that it has mod_rewrite as an installed module.... anyone else care to take a guess?



landyman
Joined: Aug 12, 2004
# Posts: 6

View the profile for landyman Send landyman a private message

Posted: 08/17/2004 04:31 pm
Edit Message Delete Message Reply to this message

Hi Wotan2525,
There are a couple of things you can try:

Try to put a forward slash before the second part of the Rewrite rule to get:
RewriteEngine on
RewriteRule ^option/([A-Za-z]+)/Itemid/([0-9])/$ /index.php?option=$1&Itemid=$2

Also, the Regular expressions look good, but you could try using (.*) instead foro both of them to see if it is parsing it incorrectly.

If nothing else works, it may be the httpd.conf file. If you have access to .htaccess, then you most likely have access to the httpd.conf file.

Hopefully, one of these will work. I'm not an expert on mod-rewrite... just saying what I know smile



wotan2525
Joined: Eons Ago
# Posts: 3

View the profile for wotan2525 Send wotan2525 a private message

Posted: 08/18/2004 08:00 am
Edit Message Delete Message Reply to this message

landyman -- thanks for your response.... just tried that and no success. sad I'm putting the .htaccess in the root folder, is this the right place? I've also not been able to find an httpd.conf anywhere.

Thanks again,

Rob



landyman
Joined: Aug 12, 2004
# Posts: 6

View the profile for landyman Send landyman a private message

Posted: 08/18/2004 10:35 am
Edit Message Delete Message Reply to this message

Yes, the .htaccess file should be in your root web folder (the same place as your homepage. If it was not in there before, that might be why it was not working.

As far as the httpd.conf goes -- if you are not the server admin for your site, then you need to contact whoever is, and ask them to check the httpd.conf file for your site to add what you need done to it. If you are the admin for your server, then it is usually in the configuration folder from the Apache install. It can also be called access.conf.
Hope this helps you out and good luck!



landyman
Joined: Aug 12, 2004
# Posts: 6

View the profile for landyman Send landyman a private message

Posted: 08/18/2004 10:45 am
Edit Message Delete Message Reply to this message

One more thing smile
Also I noticed on your site that the Itemid number can be more than one digit. So you will need to change the Regex to [0-9]+ to allow for any number of digits.
According to what I have, code should be:

RewriteEngine on
RewriteRule ^option/([A-Za-z]+)/Itemid/([0-9]+)/$ /index.php?option=$1&Itemid=$2

This will allow for things like Itemid=74 or something like that.




You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions