-
how to change URL
Hi
I am new to changing .heaccess file and I want to clean my URLs, please any one help me out.
here is my file .htaccess file:
AuthUserFile /usr/local/www/virtual/www.MYSITE.COM/.htpasswd
AuthType Basic
AuthName "Protected Area"
Require valid-user
<IfModule mod_rewrite.c>
RewriteEngine on
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
RewriteRule ^([^.]+)/?$ $1.php?%{QUERY_STRING} [L]
#RewriteRule ^content/feed/feed_name/(\d+)$ content/feed?feed_name=$1 [L]
#RewriteRule ^content/content/cat/(\d+)$ content/content?cat=$1 [L]
#RewriteRule ^content/list/page/(\d+)$ content/list?page=$1 [L]
</IfModule>
basically I have following urls
http://www.mysite.com/content/conten...Asia-country-4
http://www.mysite.com/content/feed?feed_id = 22
http://www.mysite.com/content/list?page=studio
I want to convert them to
http://www.mysite.com/content/conten...Asia-country-4
http://www.mysite.com/content/feed/feed_id/22
http://www.mysite.com/content/list/page/studio
I am new to this and it looks like I messed up my .htaccess file and I kept it under root directory ( same level at public_html) folder
I have my content folder under public_html
/usr/local/www/virtual/www.mysite.com/public_html/.htaccess
All php files are at
/usr/local/www/virtual/www.mysite.com/public_html/content/
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks