Jump to content

Mod Rewrite for html file


n000bie

Recommended Posts

Hi,

 

Please try the following steps,

[*]Please make the anchor link like this "<a  href="http://www.mysite.com/consulting "> Any Name  </a>"

[*]We can have the .htaccess file please put the following coding inside the .htaccess file

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} -f [NC,OR]

RewriteCond %{REQUEST_FILENAME} -d [NC]

RewriteRule .* - [L]

RewriteRule ^consulting+$ index.php?consulting=$0

 

Thanks & Regards

http://www.joomla-web-designer.com

Joomla Custom Template Design, Hire PHP & MySql Programmer, Hire LAMP Programmer

 

http://www.joomla-web-developer.com

Joomla Web Redesign Services, Joomla CMS Development, Joomla Ecommerce Web Maintenance Solution

Link to comment
Share on other sites

@godwisam

I pasted all the codes

 

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule .* - [L]
RewriteRule ^consulting+$ index.php?consulting=$0

 

I get a error it says 500 internal server error and this message

Internal Server Error

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

I renamed all files extension to .php but there is only header and footer includes. Is this the reason for the error .

 

I am confused.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.