Hi,
I've created my first .htaccess file to create a folder from the query string e.g. -
'event-service-listings.php?category=events' gets changed to -
'event-service-listings/events/'
It works perfectly on my localhost, but when I uploaded it to the dedicated server using a temp url - Corporate Event Services (click on one of the search by category headers) I get a 404 page not found error!
the code used in .htaccess (uploaded to public_html) -
I've got no experience using mod_rewrite and don't know where to start looking to fix the issue.
Any ideas.
Many thanks
I've created my first .htaccess file to create a folder from the query string e.g. -
'event-service-listings.php?category=events' gets changed to -
'event-service-listings/events/'
It works perfectly on my localhost, but when I uploaded it to the dedicated server using a temp url - Corporate Event Services (click on one of the search by category headers) I get a 404 page not found error!
the code used in .htaccess (uploaded to public_html) -
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^event-service-listings/(.*)/$ event-service-listings.php?category=$1&%1
Any ideas.
Many thanks