Jump to content

need some rewrite help


ballhogjoni

Recommended Posts

I am trying to make sef urls for my site. I think the problem is that I am on shared hosting and that the mod rewrite will only read the htaccess file for the main domain. I am a noob at this so I am probably wrong. The domain that I am trying to rewrite for is technically a subdomain of the main domain, but you can still reach the site by typing in http://subdomain.com. My problem is that I have some code and its not rewriting the urls.

 

Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteBase /
RewriteRule ^/category/(.*)\.html$ index.php?category=$1

 

Goal:

Change this url:

http://xxxxxxxxxxxxxx/xxxxxxxxxxxxxx/index.php?category=Regular

 

to this url:

 

http://xxxxxxxxxxxxxx/xxxxxxxxxxxxxx/Regular.html or something like that.

Link to comment
https://forums.phpfreaks.com/topic/115583-need-some-rewrite-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.