how can I rewrite localhost/base/app_files/Mat.php to main shop
in htaccess.help me with regex.
here is what i have so far

RewriteRule ^main shop/?$ /app_files/Mat.php [R=301,L]

but gives error .

Recommended Answers

WHat are you trying to do? main shop - is not a valid url surely?

Jump to Post

All 2 Replies

Member Avatar

WHat are you trying to do? main shop - is not a valid url surely?

iam trying to rewrit the url

localhost/base1/base/app_files/Mat.php

to "clean" main shop
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.