开发者

I need some help with doing a RewriteBase for .htaccess

开发者 https://www.devze.com 2023-02-14 08:07 出处:网络
I recently got an arcade script through a membership site that I belong to. The owner of the site offered free install of the script. I registered a domain name and got a hosting account with godaddy.

I recently got an arcade script through a membership site that I belong to. The owner of the site offered free install of the script. I registered a domain name and got a hosting account with godaddy.com The script was installed, but I am having a slight problem. Everything else seems to be working fine, except for clicking on the links on the left hand menu that says "Categories".

Here is my site: http://www.freeonlinegamerooms.com

I called GoDaddy customer service and was advised that I needed to add a Rewrite Base to my .htaccess file . They sent me a link to the apache site, but it hasn't helped me at all, as I am a non-technical person. It's all Greek to me. The guy who installed my script has tried to get it fixed, 开发者_JAVA技巧to no avail. He said he isn't a progammer either. Here is the text of my .htaccess file, as it presently exists:

Options +FollowSymLinks
RewriteEngine on 
RewriteRule "^game/([0-9]+)/$" file.php?id=$1 [Last]
RewriteRule "^category/([0-9]+)/([0-9]+)/$" category.php?id=$1&page=$2 [Last]

Can anyone help me with this, please? All I want is a site that works properly. I am sure this something very easy for a programmer to figure out, I'm just at a loss myself because I'm not a programmer.

Thanks in advance for any help/advice

Doug


I think you need to put a slash in the rewrite rule after the ^.

Options +FollowSymLinks
RewriteEngine on 
RewriteRule "^/game/([0-9]+)/$" file.php?id=$1 [Last]
RewriteRule "^/category/([0-9]+)/([0-9]+)/$" category.php?id=$1&page=$2 [Last]

edit: this is wrong, see my follow-up comment in this answer.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号