Reputation: 1224
dumb godaddy changed something and now my full url for my CMS doesn't work.
I need to change my URLs from:
http://www.mywebsite.com/blog/view.php/2013/07/05/story.html
http://www.mywebsite.com/blog/view.php/
to
http://www.mywebsite.com/blog/view.php?2013/07/05/story.html
http://www.mywebsite.com/blog/view.php?
?? Any help would be great!!
Thanks!!
EDIT :
Here is my current .htaccess page:
addhandler x-httpd-php-cgi .php4
addhandler x-httpd-php5-cgi .php5
addhandler x-httpd-php5-cgi .php
RewriteCond %{HTTP_HOST} ^mywebsite\.com$ [NC]
RewriteRule ^(.*)$ http://www.mywebsite.com/$1 [L,R=301]
Upvotes: 0
Views: 49
Reputation: 51711
Try this
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} /view\.php/ [NC]
RewriteRule ^(.*?/view\.php)/(.*)$ $1?$2 [NC,QSA,L]
Upvotes: 1